package com.kmist.jianghu;

public class Monster {


    private String mName;
    private int mHp;

    public int getmCurHp() {
        return mCurHp;
    }

    public void setmCurHp(int mCurHp) {
        this.mCurHp = mCurHp;
    }

    public int getmAttack() {
        return mAttack;
    }

    public void setmAttack(int mAttack) {
        this.mAttack = mAttack;
    }

    private int mCurHp;
    private int mAttack;
    private int mSpeed;

    public int getmJinbi() {
        return mJinbi;
    }

    public void setmJinbi(int mJinbi) {
        this.mJinbi = mJinbi;
    }

    private int mJinbi;

    public int getAttack() {
        return mAttack;
    }

    public void setAttack(int attack) {
        this.mAttack = attack;
    }

    public int getmSpeed() {
        return mSpeed;
    }

    public void setmSpeed(int mSpeed) {
        this.mSpeed = mSpeed;
    }

    Monster(String name, int hp, int att, int speed, int jinbi) {
        mName = name;
        mHp = hp;
        mAttack = att;
        mSpeed = speed;
        mCurHp = mHp;
        mJinbi = jinbi;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public int getmHp() {
        return mHp;
    }

    public void setmHp(int mHp) {
        this.mHp = mHp;
    }

    public void die() {
        //MainActivity.Alarm("你杀死了怪物");
    }
}

class MonsterLib{
    private Monster[] monsters = new Monster[10];

    MonsterLib(){
        //怪物初始化
        monsters[0] = new Monster("辉辉0", 100, 10, 20, 10);
        monsters[1] = new Monster("斌斌1", 200, 10, 30,10);
        monsters[2] = new Monster("辉辉2", 300,10, 30,10);
        monsters[3] = new Monster("斌斌3", 400,10, 40,10);
        monsters[4] = new Monster("辉辉4", 500,10, 30,10);
        monsters[5] = new Monster("斌斌5", 600,10, 20,10);
        monsters[6] = new Monster("小可爱6", 700,10, 30,10);
    }

    public Monster getMonster(int id){
        return monsters[id];
    }
}
